package com.mashibing.controller;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.DriverUserWorkStatus;
import com.mashibing.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 孟瑞达
 * @since 2025-06-18
 */
@RestController
public class DriverUserWorkStatusController {

    @Autowired
    private DriverUserService driverUserService;

    /**
     * 司机出车，收车状态改变
     * @param driverUserWorkStatus
     * @return
     */
    @PostMapping("/updateStatus")
    public ResponseResult updateStatus(@RequestBody DriverUserWorkStatus driverUserWorkStatus) {
        return driverUserService.updateStatus(driverUserWorkStatus);
    }

}
